﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shop.Model
{
    public class OcrResult
    {
        public ResultItem[] words_result { set; get; }

        public int words_result_num { set; get; }

        public string log_id { set; get; }


        public int direction { set; get; }


    }


    public class ResultItem
    {
        public string words { set; get; }

        public WordLocation location { set; get; }

        public charItem[] chars { set; get; }
}


    public class WordLocation
    {
        public int top { set; get; }
        public int left { set; get; }
        public int width { set; get; }
        public int height { set; get; }



        //public static RectangleF operator * (WordLocation loc, float zoom)
        //{
        //    return new RectangleF(loc.left* zoom, loc.top * zoom, loc.width * zoom, loc.height * zoom);
        //}

    }


    public class charItem
    {

        public WordLocation location { set; get; }

        [Newtonsoft.Json.JsonProperty("char")]
        public string charText {set;get;}


    }




}
